#include "SYSTEM/delay/delay.h"
#include "SYSTEM/sys/sys.h"
#include "SYSTEM/usart/usart.h"
#include "BSP/LED/led.h"
#include "BSP/BEEP/beep.h"
#include "BSP/KEY/key.h"
#include "BSP/EXTI/exti.h"
#include "BSP/IWDG/wdg.h"

int main()
{	
	HAL_Init();
	sys_stm32_clock_init(RCC_PLL_MUL9);
	delay_init(72);
	led_init();
	key_init();
	extix_init();
	usart_init(115200);
	delay_ms(1000);
	iwdg_init(IWDG_PRESCALER_64, 3125);
	LED0(0);
	int time = 0;
	
	while (1)
	{
		delay_ms(1000);
		time++;
		printf("%d second passed\n", time);
	}
}
